package com.ljf.config.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ljf.common.model.BasisModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * 发号器配置明细对象  config_base_impulse_sender_detail
 *
 * @author LJF
 * @since 2025-01-09
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("发号器配置明细")
@EqualsAndHashCode(callSuper = true)
@TableName("config_base_impulse_sender_detail")
public class ConfigBaseImpulseSenderDetail extends BasisModel {

	private static final long serialVersionUID = 1L;

	/**
	 * Java类型: Long
	 * 数据库类型: bigint
	 * 注释: ID
	 * {@link ConfigBaseImpulseSenderDetail#COL_ID}
	 */
	@TableId(value="id", type= IdType.AUTO)
	@JsonProperty("id")
	@ApiModelProperty(value = "ID")
	private Long id;

	/**
	 * Java类型: String
	 * 数据库类型: varchar(50)
	 * 注释: 编码
	 * {@link ConfigBaseImpulseSenderDetail#COL_CODE}
	 */
	@TableField("code")
	@JsonProperty("code")
	@ApiModelProperty(value = "编码")
	private String code;

	/**
	 * Java类型: Integer
	 * 数据库类型: smallint unsigned
	 * 注释: 排序
	 * {@link ConfigBaseImpulseSenderDetail#COL_SORT}
	 */
	@TableField("sort")
	@JsonProperty("sort")
	@ApiModelProperty(value = "排序")
	private Integer sort;

	/**
	 * Java类型: Integer
	 * 数据库类型: tinyint
	 * 注释: 类型(1:固定值;2:变化值;3:当前时间;4:流水号)
	 * {@link ConfigBaseImpulseSenderDetail#COL_TYPE}
	 * {@link com.ljf.config.enums.ConfigBaseImpulseSenderDetailTypeEnum}
	 */
	@TableField("type")
	@JsonProperty("type")
	@ApiModelProperty(value = "类型(1:固定值;2:变化值;3:当前时间;4:流水号)")
	private Integer type;

	/**
	 * Java类型: String
	 * 数据库类型: varchar(20)
	 * 注释: 值
	 * {@link ConfigBaseImpulseSenderDetail#COL_VALUE}
	 * {@link com.ljf.config.enums.ConfigBaseImpulseSenderDetailTypeDateFormatEnum}
	 * {@link com.ljf.config.enums.ConfigBaseImpulseSenderDetailTypeSerialModeEnum}
	 */
	@TableField("value")
	@JsonProperty("value")
	@ApiModelProperty(value = "值")
	private String value;


	/**
	 * ID
	 * {@link ConfigBaseImpulseSenderDetail#id}
	 */
	public static final String COL_ID = "id";
	/**
	 * 编码
	 * {@link ConfigBaseImpulseSenderDetail#code}
	 */
	public static final String COL_CODE = "code";
	/**
	 * 排序
	 * {@link ConfigBaseImpulseSenderDetail#sort}
	 */
	public static final String COL_SORT = "sort";
	/**
	 * 类型(1:固定值;2:变化值;3:当前时间;4:流水号)
	 * {@link ConfigBaseImpulseSenderDetail#type}
	 */
	public static final String COL_TYPE = "type";
	/**
	 * 值
	 * {@link ConfigBaseImpulseSenderDetail#value}
	 */
	public static final String COL_VALUE = "value";

}
